import request from '@/utils/request'

// 查询流程驳回意见列表
export function listOpinion(query) {
  return request({
    url: '/system/opinion/list',
    method: 'get',
    params: query
  })
}

// 查询流程驳回意见详细
export function getOpinion(guid) {
  return request({
    url: '/system/opinion/' + guid,
    method: 'get'
  })
}

// 新增流程驳回意见
export function addOpinion(data) {
  return request({
    url: '/system/opinion',
    method: 'post',
    data: data
  })
}

// 修改流程驳回意见
export function updateOpinion(data) {
  return request({
    url: '/system/opinion',
    method: 'put',
    data: data
  })
}

// 删除流程驳回意见
export function delOpinion(guid) {
  return request({
    url: '/system/opinion/' + guid,
    method: 'delete'
  })
}

// 导出流程驳回意见
export function exportOpinion(query) {
  return request({
    url: '/system/opinion/export',
    method: 'get',
    params: query
  })
}